<?php echo $this->Session->flash(); ?>

<?php  $bloqueo = $this->Session->read('bloqueo_avaluo'); ?>

<div id="loading" style="display: none;">
    <?php echo $html->image('loading.gif', array('border' => "0", 'align' => 'center')); ?>
</div>

<?php echo $form->create('PropertyAppraisal'); ?>
<?php //echo $form->input('PropertyAppraisal.avaluo_globalizado', array('label' => "El avaluo es globalizado ")); ?>

<fieldset><legend>Numero predial</legend>
    <table border="0" cellspacing=2 >
        <tbody >
            <tr>
                <td><?php echo $form->input('Property.np_departamento', array('label' => "Departamento")); ?></td>
                <td><?php echo $form->input('Property.np_municipio', array('label' => "Municipio")); ?></td>
                <td><?php echo $form->input('Property.np_tipo', array('label' => "Tipo")); ?></td>
            </tr>
            <tr>
                <td><?php echo $form->input('Property.np_sector', array('label' => "Sector")); ?></td>
                <td><?php echo $form->input('Property.np_vereda', array('label' => "Vereda")); ?></td>
                <td><?php echo $form->input('Property.np_predio', array('label' => "Predio")); ?></td>
            </tr>
            <tr>
                <td><?php echo $form->input('Property.np_mejora', array('label' => "Mejora")); ?></td>
                <td><?php echo $form->input('Property.id', array('value' => $this->data['PropertyAppraisal']['property_id'])); ?></td>
                <td></td>
            </tr>
        </tbody>
    </table>



</fieldset>
<fieldset>
    <table cellpadding ="7" aling = "left">

        <tr>
            <td><?php echo $form->input('PropertyAppraisal.avaluo_vigente', array('label' => "Avalúo vigente")); ?></td>
            <td><?php echo $form->input('PropertyAppraisal.vigencia_actualizacion', array('label' => "Vigencia de la actualizacion")); ?></td>
        </tr>
        <tr>
            <td colspan="2"><?php echo $form->hidden('PropertyAppraisal.property_id');
echo $form->input('PropertyAppraisal.observaciones', array('label' => "observaciones", 'class' => 'txtarea')); ?></td>

        </tr>
        <tr>
            <td><?php echo $form->input('PropertyAppraisal.id'); ?></td>
            <td>
                <?php
               
                    if($bloqueo=="No") echo $ajax->submit('Guardar', array('url' => array('controller' => 'PropertyAppraisals', 'action' => 'add_catastral', $this->data['PropertyAppraisal']['id']), 'update' => 'catastral', 'complete' => '', 'indicator' => 'loading'));
                ?>
            </td>
        </tr>

    </table>
    <?php echo $form->end(); ?>
    <?php echo  $ajax->link($html->image("regresar.gif", array('width' => '30', 'heigth' => '30', 'alt' => 'regresar', 'align' => 'center')), array('controller' => 'PropertyAppraisals', "action" => "catastral_index"), array('escape'=>false, 'update' => 'catastral', 'complete' => '','indicator' => 'loadingx'));?>

</fieldset>
